//
//  MoreWorkmateDecryptCell.m
//  MyProject
//
//  Created by 石小强 on 2018/3/23.
//  Copyright © 2018年 yanjiaming. All rights reserved.
//

#import "MoreWorkmateDecryptCell.h"

@implementation MoreWorkmateDecryptCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.headerIV.layer.cornerRadius = 14.5;
    self.headerIV.layer.masksToBounds = YES;
}

- (void)setModel:(DecryptModel *)model {
    _model = model;
    
    [self.headerIV sd_setImageWithURL:ImageURLWithKey(model.publisherHeadImg) placeholderImage:PlaceholderImage];
    self.nameLabel.text = model.title;
    self.ratingL.text = [NSString stringWithFormat:@"共%@条评论", model.evaluateCount];
    self.namePositionL.text = [NSString stringWithFormat:@"%@ | %@-%@", model.publisher, model.publisherPosition, model.publisherCompany];
    self.starView.value = [model.star floatValue];
}

@end
